<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

get_header();
?>
		<div class="cDivSingleContentWrapper">
			
			<div class="cDivTitleWrapper">
				<h3>Services</h3>
				<div class="cDivRedLine"></div>
			</div>

			<div class="cDivServiceIntro cDivContent">
				<?php 
					$sServiceIntroduction = ot_get_option( 'ai_service_introduction'); //option tree plugin

					echo $sServiceIntroduction;

				 ?>
			</div>

			<?php if (have_posts()) : 
					$iCounter = 1;
					while(have_posts()) : the_post()
			?>
					<div class="cDivPostContent cDivServiceArchive <?php echo ($iCounter == 2) ? 'right' : ''; ?>">
						<div class="cDivTitleWrapper">
							<h3><?php echo get_the_title(); ?></h3>
							<div class="cDivRedLine"></div>
						</div>
						
						<div class="cDivContent <?php echo ($iCounter == 2) ? 'right' : ''; ?>">

							<?php the_content(); ?>

							<?php //echo get_field('aiServicePrice'); ?>
						
							<div style="height: 10px"></div>
							<?php
								$sOneLineIntro = get_field('aiOneLineIntro');
								if ($sOneLineIntro != '') {
									$aiOneLineIntro = explode('<br />', $sOneLineIntro);
									foreach ($aiOneLineIntro as $key => $sValue) {
										if ($sValue != '' && isset($sValue) && !ctype_space($sValue) ) { ?>
											<div class="cDivItem <?php echo (($key % 2) == 0) ? '' : '';?>">
												<span class="cSpanMark"></span>
												<?php echo $sValue; ?>
											</div>
									<?php
										}
									}
								}
							?>							

							<?php
								if ($iCounter == 1) :
									echo '<div class="cDivVerticalLineFull"></div>';

								endif;	
							?>
						</div>
						<div class="cClearBoth"></div>

						<div class="cDivPriceContainer">
							<a href="<?php echo bloginfo('url');?>/price" class="cAMoreInfo">Price</a>
						</div>

						<!-- <div class="cDivServiceContentRow cRowOdd">
							<a href="<?php //echo get_permalink(); ?>" class="cAMoreInfo cAServiceArchive">Send Us Your CV</a>
						</div> -->
					</div>
			<?php
					$iCounter++;
					endwhile;
			 	endif;

			?>
				
		</div>
	

<?php
get_footer();
?>
